package cn.zsb.zsb;

import io.swagger.annotations.Api;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cache.annotation.Cacheable;
//import org.springframework.context.annotation.ComponentScan;
//import org.springframework.web.servlet.DispatcherServlet;

/**
 * @author oldliu
 * @since 1.0
 */
@SpringBootApplication
//@ComponentScan(basePackages = {"cn.zsb"})
@MapperScan("cn.zsb.zsb.dao")
//@Cacheable
@Api("这是专升本系统的查询接口")
public class ZsbApplication extends SpringBootServletInitializer {
    public static void main(String[] args) {
        //DispatcherServlet d=null;
        SpringApplication.run(ZsbApplication.class, args);
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
//        return super.configure(builder);
        return builder.sources(ZsbApplication.class);
    }
}
